import { IPaginationQuery } from './common.type';

/**
 * 岗位实体（响应）
 */
export interface IPost {
  id: string;
  code: string;
  name: string;
  sort: number;
  status: number;
  description?: string | null;
  createdAt?: string | null;
  updatedAt?: string | null;
}

/**
 * 创建岗位请求
 */
export interface ICreatePost {
  code: string;
  name: string;
  sort?: number;
  status?: number;
  description?: string;
}

/**
 * 更新岗位请求
 */
export interface IUpdatePost {
  code?: string;
  name?: string;
  sort?: number;
  status?: number;
  description?: string;
}

/**
 * 查询岗位请求
 */
export interface IQueryPost extends IPaginationQuery {
  code?: string;
  name?: string;
  status?: number;
}
